
module.exports = function (mongoose) {

    var PartSchema = new mongoose.Schema({
        _id:    { type: String, unique: true },
        catid:  { type: String },
        partn:  { type: String },
        desc:   { type: String },
        cost:   { type: String }
    });

    var Part = mongoose.model('Part', PartSchema);

    //put custom methods here

    return {
        Part: Part
    };
};
